let url = {};

// 获取js解析
function analysis(resolve) {
    resolve.keys().forEach(key => {
        let address = resolve(key).default;
        for (let key2 in address) {
          if (address.hasOwnProperty(key2)) {
              address[key2] = address[key2]
          }
        }
        Object.assign(url,address);
    });
}
analysis(require.context('@/api', true, /\.js$/));
export default url;
